package net.csdn.business.common.domain.request.security;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Lombok;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ListleakResultDTO {

    /**
     * 漏洞名称
     */
    private String name;

    /**
     * 风险等级
     */
    private Integer percision;

    private String toolId;

    @NotBlank(message = "仓库id不能为空")
    private String respositoryId;

    @NotNull(message = "页码不能为空")
    @Min(value = 1)
    private Integer pageNum;

    @NotNull(message = "单页条数不能为空")
    @Min(value = 1)
    @Max(value = 100)
    private Integer pageSize;

    /**
     * asc:升序
     * desc:降序
     */
    private String orderType;

    private String field;

    private String username;

    /**
     * 扫描id
     */
    private String scanId;

}
